//
//  ChildViewController.m
//  blackjack
//
//  Created by Thi Nguyen Tran on 3/17/10.
//  Copyright 2010 Epsilon. All rights reserved.
//

#import "ChildViewController.h"


@implementation ChildViewController

@synthesize delegate;

- (id)initWithRootViewController:(UIViewController *) root {
	if(self = [super initWithRootViewController:root]) {
		UINavigationItem *item = [[UINavigationItem alloc] initWithTitle:@"Back"];
		UIBarButtonItem* backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back"
																	   style:UIBarButtonItemStyleBordered
																	  target:self
																	  action:@selector(backButtonTouched:)];
		[item setLeftBarButtonItem:backButton];
		[self setNavigationItem:item];
	}
	return self;
}

- (void)backButtonTouched:(id)sender {

}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
